
const levelfilter = {
    "0": {
        type: "",
        text: "一级"
    },
    "1": {
        type: "success",
        text: "二级"
    },
    "2": {
        type: "warning",
        text: "三级"
    },
}
const levelfiltertwo = {
    0: {
        type: "",
        text: "一级"
    },
    1: {
        type: "success",
        text: "二级"
    },
    2: {
        type: "warning",
        text: "三级"
    },
}
function DateFilter(time) {
    let date = new Date(parseInt(time))
    let y = date.getFullYear()
    let MM = date.getMonth() + 1
    MM = MM < 10 ? ('0' + MM) : MM
    let d = date.getDate()
    d = d < 10 ? ('0' + d) : d
    let h = date.getHours()
    h = h < 10 ? ('0' + h) : h
    let m = date.getMinutes()
    m = m < 10 ? ('0' + m) : m
    let s = date.getSeconds()
    s = s < 10 ? ('0' + s) : s
    return y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s
}
let payFilter = [
    {
        is_send: "未付款",
        type: "danger"
    },
    {
        is_send: "已付款",
        type: "success"
    }
]
export {
    levelfilter,
    DateFilter,
    payFilter,
    levelfiltertwo
}